﻿using WpfApp1.Model;

namespace WpfApp1.ViewModel
{
    class LogsViewModel
    {
        private readonly Log log;
        private long id;
        private string info;
        private string source;
        private string create_time;

        public long Id { get => log.Id; set => id = value; }
        public string Info { get => log.Info; set => info = value; }
        public string Create_time { get => Tools.StampToDateTime(log.Create_time); set => create_time = value; }
        public string Source { get => log.Source; set => source = value; }

        public LogsViewModel(Log log)
        {
            this.log = log;
        }
    }
}
